package cn.jichangxiu.auth.model;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.ArrayList;
import java.util.Collection;


@Data
public class UserJWT extends User {
    private String id;
    private String infoId;
    private String account;
    private String password;
    private String avatar;
    private String nickname;
    private String userDesc;

    public UserJWT(String id, String account, String password, Collection<? extends GrantedAuthority> authorities) {
        super(account, password, authorities);
        this.id = id;
        this.account = account;
        this.password = password;
    }
}
